package com.example.demo.service;

import com.example.demo.domain.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service

public class StudentService {
    @Autowired
    private Student student;

    public Student getStudent(){
        student.setStdId("2022006313");
        student.setStdName("郭力荣");
        student.setHobby(new String[]{"打篮球","看电影"});
        return student;
    }
}
